package com.example.activityandintent;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
	private static final String TAG="MainActivity";
	private Button mButton;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    

    @Override
    protected void onStart() {
    	super.onStart();
    	Log.d(TAG, "Activity goi onStart()");
    }
    
    @Override
    protected void onResume() {
    	super.onResume();
    	Log.d(TAG, "Activity goi onResume()");
    }
    
    @Override
    protected void onPause() {
    	super.onPause();
    	Log.d(TAG, "Activity goi onPause()");
    }
    
    @Override
    protected void onStop() {
    	super.onStop();
    	Log.d(TAG, "Activity goi onStop()");
    }
    
    @Override
    protected void onDestroy() {
    	super.onDestroy();
    	Log.d(TAG, "Activity goi onDestroy()");
    }
    
    @Override
    protected void onRestart() {
    	super.onRestart();
    	Log.d(TAG, "Activity goi onRestart()");
    }
    
}
